using UnityEngine;
using System.Collections;

public class Portal : MonoBehaviour {

	public float cronometro;
	public Texture image01;
	public Texture image02;
	
	void Update () 
	{
		cronometro += Time.deltaTime;
		
		if(cronometro > 0.5)
		{
			renderer.material.mainTexture = image01;
		}
		
		if(cronometro < 0.5)
		{
			renderer.material.mainTexture = image02;
		}	
		
		if(cronometro > 1)
		{
			cronometro = 0;
		}
				
		
	}
}
